from django.db import models

class Location(models.Model):
    latitude    = models.FloatField()
    longitude   = models.FloatField()
    speed       = models.FloatField()
    timestamp   = models.DateTimeField(auto_now=True)
    device      = models.ForeignKey('Device')


class Device(models.Model):
    imei        = models.CharField(max_length=16)
    description = models.TextField()

